import React, { FC } from 'react'
import styled from 'styled-components'

type InputType = 'text'| 'file' | 'number' | 'email';

interface InputProps {
  type?: InputType,
  value?: string,
  onChange?: (e: any) => void
}

export const BaseInput:FC<InputProps> = (props) => {
  return <input type={props.type}  value={props.value} {...props}/>
}

const Input = styled(BaseInput)`

`;

export default Input;
